
from django.urls import path
from users import views
from django.urls import  register_converter

from utils.converters import UsernameConverter

register_converter(UsernameConverter,'username')

urlpatterns = [

    path('usernames/<username:name>/count/', views.UsernameView.as_view()),
     # 这是手机号的校验
    path('mobiles/<mobile>/count/', views.MobileView.as_view()),

    path('image_codes/<image_code_id>/', views.Image.as_view()),

    path('sms_codes/<mobile>/',views.Send_messageView.as_view()),

    path('register/',views.Register.as_view()),
]
